package com.ip.controller.auth;

import com.ip.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserTestController {

    @Autowired
    private UserService userService;

    @GetMapping("/user")
    public Object queryUserInfo(String openid, String username, String headUrl) {
        return userService.saveUserInfo(openid, username, headUrl);
    }
}
